<?php
/**
 * JoosFish - Multi Lingual extention and translation manager for Joostina CMS
 * Copyright (C) 2011 Joostina Team
 * 
 * @name JoosFish
 * @copyright © 2011 Joostina team, © 2003-2007 Think Network GmbH, Munich
 * @license GNU General Public License version 2
 * @version 1.8.2.1
 * @package Joostina
 *
 * Based on the source code of Joom!Fish 1.8.2 copyrighted by Think
 * Network GmbH, Munich. The main contribution is made by developers of
 * Joom!Fish project, but the main reason behind making JoosFish an alongside
 * project is to maintain it's compatibility with Joostina CMS 1.3.x
 * 
 * For full copyright note see documetation/COPYRIGHT.php
 * 
 * For changes see documentation/CHANGELOG.php
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * -----------------------------------------------------------------------------
 * $Id: joomfish.help.inc.php 8 2011-06-30 08:23:14Z hnatt88@gmail.com $
 *
*/

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

class HTML_joomfish_help {

	function showWelcome() {
		global $act, $task, $option, $mosConfig_live_site;
		HTML_joomfish::_JoomlaHeader( JText::_('JOOMFISH_TITLE'). ' '.JText::_('JOOMFISH_CREDITS'), 'credits', false );
    ?>

	<tr align="center" valign="middle">
      <td align="left" valign="top" width="70%">
		<p>
      	<span class="moduleheading">Welcome to the Joom!Fish</span></p>

        <strong>Joom!Fish - translation? multilingual content manager - What are you talking about? What the hell is a babel fish?</strong>
		<p>Ok one thing is for SURE! <b>It's not the automated translation tool some companies provide!</b> They borrowed the name already!</p>
		<p>But you know Ford Perfect, do you?<br />
		<strong>NO!</strong><br />
		&nbsp;<br />
		Uff, that's hard - can life really be so hard?<br />
		Actually ... - yes! <br />
		&nbsp;<br />
		<strong>But what now? ...</strong><br />
		The best you can do: <a href="http://www.amazon.de/exec/obidos/ASIN/0345391802/thinknetwork-21" target="_blank">click here to find - read - lough - understand!</a><br />
		&nbsp;<br />
		Be fast otherwise the inter galactical route will be build and it is to late ;-)</p>
		<p>
		<strong>Yes, of course!</strong><br />
		Cute, your table in "The Restaurant at the End of the Universe " is reserved.<br />
		Do you want to <a href="index2.php?option=com_joomfish&task=help">see the menu</a>?<br />
		&nbsp;<br />
		It's a pleasure to have you folks here<br>

		<p>
		<span class="moduleheading">Credits</span><br />
		For all of you that still don't get what I'm talking about. You definitly need to read the books!<br />
		<br />
		I would also like to take the change to thank all of the users of MambelFish and Joom!Fish as it's you who makes this<br />
		tool one of the most important onces in the Joomla! universe. Please don't stop pushing us with new ideas and suggestions<br />
		how we can improve the Fish even more.
		</p>
		<p>
		Thank's to the Joom!Fish Development team, all translators and Tommy for the cute design of the fish.<br />
		&nbsp;<br />
		Alex</p>
	  </td>
		<td align="left" valign="top" nowrap>
			<?php HTML_joomfish::_sideMenu();?>
			<?php HTML_joomfish::_creditsCopyright(); ?>
		</td>
	<?php
		HTML_joomfish::_footer($task, $option);
  }


	function showHelp() {
		global $act, $task, $option, $mosConfig_live_site;
		HTML_joomfish::_JoomlaHeader( JText::_('JOOMFISH_TITLE'). ' ' .JText::_('HELP AND HOWTO'), 'support', false );
    ?>
	<tr align="center" valign="middle">
      <td align="left" valign="top" width="70%">
		<h2>Where do we start?</h2>
	   <p>Ever ask yourself how you can create a multi-language web site without copying the
		whole Joomla tables? The Joom!Fish is one of the possible answers.<br />
		&nbsp;<br />
		The Joom!Fish components supports you managing all your content translations, even the
		content of all the components/modules, in your web site. The component is so flexible that you
		can easily add new components and after that translate the new generated content.<br />
		&nbsp;</p>

		<h2>What do we understand as a content?</h2>
		<p>If we speak about content, we mean any text or other information that is stored in
		one of the tables the Joomla Open Server provides. There are some text information, like
		the text of some links, which are stored in system wide language files. These files
		give you an easy change to switch your site between different languages. <strong>But</strong>
		the news, articles or other <em>content</em> you are creating is only in the language
		you write it :-(.<br />
		&nbsp;<br />
		The Joom!Fish is a solution to help you translating this content ;-) so that your
		site gets really multi-lingual. Each definition of dynamic content we call component elements.<br />
		&nbsp;</p>

		<h2>What does the component for you?</h2>
		<p>We didn't wanted to create a mashine translation or other computer based translation method.
		The aim is to support the translation process, which you will have in a bit bigger enviornment.
		At the moment you have some external editors which create new content for you, someone has
		to have control over the translation.<br />
		&nbsp;<br />
		With the Joom!Fish this person can check all content to find not yet translated items,
		see resently changed items or just manage the supported languages. Based on this your person
		in charge can translate the content items whenever he/she wants and also with any technique
		it is preferred.</p>

		<h2>How does it work?</h2>
		<p>Pretty easy. In the component menu you find the <a href="index2.php?&task=show&act=config_component&hidemainmenu=1">"Component configuration"</a> to change all the
		general settings of apperience and so on. This is the usual stuff.<br />
		The main thing you have to configure here is for which languages you want to provide the translations.
		Just select the languages you want in the list.</p>

		<p>The second part is a bit more difficult. The definition of component elements is directly conntected
		to your database. That's why we decided not to make this configuration available in the Administrator!<br />
		The administrator shows you in the <a href="index2.php?option=com_joomfish&task=config_elements">"Configuration of content's"</a>
		all installed content element definitions. These definitions are hold in XML files which are
		stored in the subdirectory "contentelements" below your administration dir of Joom!Fish.<br />
		If you wish you add a new content or change existing once you have to modify the XML files, which
		should not be to difficult.<br />
		Most important here you, will find some nice possibilities to check if the XML files pointing
		to the correct information ;-)<br />
		&nbsp;<br />
		If you add a new XML file for a not yet implemented component/module make sure you edit also
		the component/module PHP scripts.</p>

		<p>For the translation process you just use the <a href="index2.php?option=com_joomfish&task=translate">"Translation"</a> menu. There you will find a
		list of the content's in your database. After selecting a content you can easily
		work with the translation and store it to your database.</p>
	   &nbsp;<br />
		 <p>That's it so far. Any ideas, problems and so on - just send me a mail<br>
	   &nbsp;<br />
	   Alex</p>		</td>
		<td align="left" valign="top" nowrap>
			<?php HTML_joomfish::_sideMenu();?>
			<?php HTML_joomfish::_creditsCopyright(); ?>
		</td>
	</tr>

<?php
		HTML_joomfish::_footer($task, $option);
  }

  function showMambotWarning(){
		global $act, $task, $option, $mosConfig_live_site, $_VERSION;
		HTML_joomfish::_header();
		?>
     <td align="left" valign="top">
       <h2 style="color:red">There was a problem with your installation</h2>
       <p>The directory "<?php echo mosMainFrame::getBasePath();?>/mambots/system/" is not writeable</p>
       <p>Please:</p>
       <ul>
       <li>Uninstall Joomfish</li>
       <li>Modify the file permissions</li>
       <li>Reinstall</li>
       </ul>
       <p>Thanks.</p>
</td>
	<?php
		HTML_joomfish::_footer($task, $option);

  }
	function showPostInstall( $success=false ) {
		global $act, $task, $option, $mosConfig_live_site, $_VERSION;
		HTML_joomfish::_header();
	?>
     <td align="left" valign="top">
       <h2>Вас приветствует  Joom!Fish</h2>
       <p>
       JoomFish компонент поможет вам сделать ваш сайт на нескольких языках одновременно. </p>
       <p><strong>1. Шаг: Установка языков </strong></p>
       <p>
	   Первый шаг заключается в установке языковых пакетов для Joomla.
	   Их вы можете найти на <a href="http://extensions.joomla.org" target="_blank">Joomla! extension website</a>.<br />
	   Установите языки (количество не ограничивается) которые вы хотите использовать на своем сайте - используйте <a href="/administrator/index2.php?option=com_installer&element=language">Site -> Languages -> Install(В Joostina Расширения -> Языки сайта)</a> функцию.</p>

	   <h3>2. Шаг: Настройка языка </h3>
	   <p>После того как вы установили языковые пакеты, вам необходимо активировать их, выбрать для них имя и добавить некокторые настройки. Это уже вам необходимо осуществить с помощью компонента JoomFish	   (<a href="/administrator/index2.php?option=com_joomfish&task=config_language">Components -> Joom!Fish -> Languanges</a>).<br />
	   &nbsp;<br />
	   <b>Удостовертесь:</b> Когда вы меняете язык по умолчанию в Global configuration Joomla, то на фронтенде вы должны увидеть использование этого языка.</p>
	   <h2>Как перевести статьи ?</h2>
	   <p>После того, как вы убедились, что перевод работает для статического содержания вашего сайта, давайте попробуем перевести динамическое содержание, хранящееся в базе данных. </p>

	   <h3>3. Шаг: Перевод данных в Базе данных </h3>
	   <p>В первую очередь мы попробуем сделать перевод для меню вашего сайта .<br />
	   Для этого зайдите в <a href="index2.php?option=com_joomfish">Панель управления</a> и выберите функцию Перевод. <br />
	   После этого, в выпадающем окне "Языки", выберите язык на который вы хотите перевести материал. Затем в выпадающем окне "Элементы контента" выберите Menus. После того как вы сделаете это, вы увидите текущий список всех меню вашего сайта.<br />
	   Выбрав &quot;mainmenu&quot; вы увидите список всех подразделов, включенных в это меню. Выполянйте перевод каждого эмелемента, нажимая на него. Не забудьте публиковать каждый перевод (это важно!).<br />
	   &nbsp;<br />
	   <b>Проверка:</b> Когда вы закончите с переводом, то проверьте главное меню с фронтенда - при выборе перевода вы должны увидеть это же меню на другом, выбранном вами языке.</p>

   	   <h3>4. Шаг: Перевод дополнительной информации </h3>
   	   <p>Для другого динамического содержания вашего сайта вам необходимо сперва установить дополнительные элемент ( <a href="index2.php?option=com_joomfish&task=config_elements">install additional content element files</a>).</p>

	   <h2>Эволюция Joom!Fish</h2>
	   <p>Это стабильный релиз для Joomla ветки 1.0.x
	   Для Joomla версии 1.5.x мы предоставляем новую версию 	 JoomFish с использованием новых функций и конструкций. Развитие JoomFish 2.0 началось с выходом релиза Joomla 1.5 RC2 и продолжится еще какое-то время. Посетите наш вебсайт для получения самой свежей информации.</p>
	   
	   <p>Еслт вы имеете какие-либо вопросы, то приглашаем посетить наш форум. Надеемся, что вы получите удовлетворение от использования JoomFish.<br/>
	   С уважением, команда разработчиеов JoomFish!</p>
	   
</td>
		<td align="left" valign="top" nowrap>
			<?php HTML_joomfish::_sideMenu();?>
			<?php HTML_joomfish::_creditsCopyright(); ?>
		</td>
<?php
		HTML_joomfish::_footer($task, $option);
  }
}
?>
